package com.zhao.trace.service.Impl;


import com.zhao.trace.entity.User;
import com.zhao.trace.mapper.UserMapper;
import com.zhao.trace.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public User findByUsername(String username){return userMapper.findByUsername(username);}

    @Override
    public List<User> findAll() {
        return userMapper.findAll();
    }

}
